package com.cloud.business.entity.sys;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;

import com.cloud.business.common.CommonTimeZone;
import com.baomidou.mybatisplus.annotation.TableLogic;

import java.util.Date;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * 实体映射类
 * Copyright: Copyright (C) 2020 DLANGEL, Inc. All rights reserved.
 * Company: 大连安琪科技有限公司
 * AR模式可以继承 extends Model<SysArticleReadTime>
 *
 * @author yuf
 * @since 2020-7-1 18:46:31
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "SysArticleReadTime对象", description = " ")
public class SysArticleReadTime {

    private static final long serialVersionUID = 1595399681248L;

    @TableId(value = "object_id", type = IdType.AUTO)
    @ApiModelProperty(name = "objectId", value = "base-主键")
    private Integer objectId;
    @TableLogic
    @ApiModelProperty(name = "isDeleted", value = "base-删除标志")
    private Integer isDeleted;
    @ApiModelProperty(name = "pid", value = "base-上级id")
    private Integer pid;
    @ApiModelProperty(name = "sort", value = "base-排序")
    private Integer sort;
    @ApiModelProperty(name = "createUserId", value = "base-创建人")
    private Integer createUserId;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = CommonTimeZone.TIMEZONE)
    @ApiModelProperty(name = "createTime", value = "base-创建时间")
    private Date createTime;
    @ApiModelProperty(name = "modificationUserId", value = "base-修改人")
    private Integer modificationUserId;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = CommonTimeZone.TIMEZONE)
    @ApiModelProperty(name = "modificationTime", value = "base-修改时间")
    private Date modificationTime;
    @ApiModelProperty(name = "remark", value = "base-备注")
    private String remark;
    @ApiModelProperty(name = "articleId", value = "阅读内容id")
    private Integer articleId;
    @ApiModelProperty(name = "readUserId", value = "阅读人id")
    private Integer readUserId;
    @ApiModelProperty(name = "isRead", value = "已读标识")
    private Integer isRead;
    @ApiModelProperty(name = "readTimes", value = "查看次数")
    private Integer readTimes;

}
